﻿package com.yy.ui.containers {
    import com.yy.ui.core.UIComponent;
    
    import flash.display.*;

    public class ContainerBase extends UIComponent {

        public function ContainerBase(){
            this.autoSize = false;
        }
        public function setRight(_arg1:DisplayObject, _arg2:Number):void{
            _arg1.x = ((this.width - _arg2) - _arg1.width);
        }
        public function setBottom(_arg1:DisplayObject, _arg2:Number):void{
            _arg1.y = ((this.height - _arg2) - _arg1.height);
        }
        public function setHCenter(_arg1:DisplayObject, _arg2:Number=0):void{
            _arg1.x = (((this.width - _arg1.width) / 2) + _arg2);
        }
        public function setVCenter(_arg1:DisplayObject, _arg2:Number=0):void{
            _arg1.y = (((this.height - _arg1.height) / 2) + _arg2);
        }

    }
}
